

const category = {
    namespaced: true,
    state: {
        categoryList: '',
        currentOne: '',
        // activeKey: 0
    },
    mutations: {
        // 设置导航列表
        setCategoryList(state, val) {
            state.categoryList = val.categoryList
            // console.log(state.categoryList);
        },
        // 设置当前的列表详情
        setCurrentOne(state, val) {
            state.currentOne = val.data.currentOne
            console.log(state.currentOne);
        },
        // 设置当前的列表索引
        setActiveKey(state, val) {
            state.activeKey = val
        }
    },
    actions: {

    },
    getters: {

    }
}
export default category
